package com.java.day04.arr;

/**
 * 数组的拷贝
 */
public class Demo07 {
    public static void main(String[] args) {
        int[] arr1 = {1,2,3,4,5};
        int[] arr2 = new int[10];//扩容了

        for (int i = 0; i < arr1.length; i++) {
            arr2[i]=arr1[i];
        }

        ArrUtils.printArrInt(arr1);
        ArrUtils.printArrInt(arr2);

    }
}
